using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(fileName = "GeneralPoolItemConfigSO",menuName = "Asset/Core/ItemPoolConfig")]
public class AllPoolItemConfigSO : ScriptableObject
{
  public List<InitPoolItemInfo> itemInfoSList = new List<InitPoolItemInfo>();

    public void Init()
    {
        for (int i = 0; i < itemInfoSList.Count; i++)
        {
            itemInfoSList[i].currentCount = 0;
        }
    }
}
[System.Serializable]
public class InitPoolItemInfo
{
    public string itemName;
    public GameObject prefab;
    public int reloadCount;
    public int permiteMaxCount;
    public int currentCount { get; set;  }
    public InitPoolItemInfo(string itemName, GameObject prefab, int reloadCount)
    {
        this.itemName = itemName;
        this.prefab = prefab;
        this.reloadCount = reloadCount;
        currentCount = 0;
    }
}
